package com.tongzhan.entity.religion;

import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Document(collection = "Personnel")
public class Personnel extends BaseModel {
    @Id
    private String _id;
    @PrimaryKey
    @Field("PersonnelCode")
    private String personnelCode;
    @Field("RealName")
    private String realName;
    @Field("Duties")
    private String duties;
    @Field("Sex")
    private Integer sex;
    @Field("Age")
    private Integer age;
    @Field("Address")
    private String address;
    @Field("Telephone")
    private String telephone;
    @Field("Email")
    private String email;
    @Field("Education")
    private String education;
    @Field("StreetCode")
    private String streetCode;
    @Field("StreetName")
    private String streetName;
    @Field("ReligionCode")
    private String religionCode;
    @Field("ReligionName")
    private String religionName;
    @Field("SiteCode")
    private String siteCode;
    @Field("SiteName")
    private String siteName;
    @Field("Certificates")
    private String certificates;//身份证正反面图片
    @Field("Residences")
    private String residences;//居住证正反面图片
    @Field("FrontPhoto")
    private String frontPhoto;//来访人员正面照图片
    @Field("TeachingStaff")
    private String teachingStaff;//教职人员证图片
    @Field("Cause")
    private String cause;//来访缘由
    @Field("Source")
    private String source;//来源地
    @Field("IsGreenCode")
    private Integer isGreenCode;//是否绿码
    @Field("Type")
    private Integer type;//人员类型 0-暂住 1-常驻
    @Field("InTime")
    private LocalDate inTime;//入驻时间
    @Field("OutTime")
    private LocalDate outTime;//离开时间
    @Field("CreateTime")
    private LocalDateTime createTime;
    @Field("UpdateTime")
    private LocalDateTime updateTime;
}
